#ifndef ADMINMAINWINDOW_H
#define ADMINMAINWINDOW_H

#include <QMainWindow>
#include <QSqlDatabase>
#include "promotionmanagerwindow.h"
#include "usermanage.h"

QT_BEGIN_NAMESPACE
namespace Ui { class adminMainWindow; }
QT_END_NAMESPACE

class adminMainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit adminMainWindow(QSqlDatabase db, QWidget *parent = nullptr);
    ~adminMainWindow();

private slots:
    void on_pushButtonOpenPromotion_clicked();


    void on_pushButtonOrder_manage_2_clicked();

    void on_pushButtonUser_manage_2_clicked();

    void on_pushButtonProducts_manage_2_clicked();

    void on_pushButtonComments_clicked();

    void on_salesButton_clicked();

private:
    Ui::adminMainWindow *ui;
    QSqlDatabase m_db;
    PromotionManagerWindow *m_promotionWindow;
};

#endif // MAINWINDOW_H
